{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>

        <table width="800" border="1px solid #ccc">
            <tr>
                <th>id</th>
                <th>角色名</th>
                <th>权限名</th>

                <th>操作</th>
            </tr>

            {volist name="data" key="k" id="v" }
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['rolename']}</td>
                <td>
                    {volist name="$v['permission']" key="k1" id="v1" }
                    {$v1}
                    {/volist}
                </td>
                <td>
                    <a href="{:url('admin/role/portion',['id'=>$v['id']])}">分配权限</a>

                </td>

            </tr>
            {/volist}


        </table>
    </div>
</div>

{/block}